package com.village.zpark.service;

import com.github.pagehelper.PageInfo;
import com.village.zpark.pojo.Farmer;
import com.village.zpark.pojo.Governance;

import java.util.List;

public interface GovernanceService {
    public List<Governance> findAll();

    /**
     *根据id查询
     */
    public Governance findById(Integer id);

    /**
     * 新增一条乡村信息
     */
    public int addGovernance(Governance governance);

    /**
     * 修改乡村信息
     */
    public int updateGovernance(Governance governance);

    /**
     * 删除一条乡村信息
     */
    public int deleteGovernanceById(Integer id);

    /**
     * 分页查询
     */
    public PageInfo<Governance> findPage(int page, int size, String param );
}
